    <?php if ($this->FlashMessenger()->count() || count($this->messages)) :?>
        <ul>
        <?php
            foreach ($this->FlashMessenger()->getMessages() as $message) {
                echo "<li>".$this->translate($message)."</li>";
            }
            foreach ((array)$this->messages as $message) {
                echo "<li>".$this->translate($message)."</li>";
            }
        ?>
        </ul>
    <?php endif; ?>
